package com.xuanwei.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2019-07-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class XwUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("nickname")
    private String nickname;

    @TableField("integral")
    private Integer integral;

    /**
     * 1男2女
     */
    @TableField("gender")
    private Integer gender;

    /**
     * 省
     */
    @TableField("province")
    private String province;

    /**
     * 市
     */
    @TableField("city")
    private String city;

    /**
     * 国家
     */
    @TableField("country")
    private String country;

    /**
     * 头像
     */
    @TableField("avatar_url")
    private String avatarUrl;

    /**
     * 微信小程序的openid
     */
    @TableField("mini_app_openid")
    private String miniAppOpenid;

    /**
     * 电话号码
     */
    @TableField("cellphone")
    private String cellphone;

    /**
     * 注册地址
     */
    @TableField("registry_address")
    private String registryAddress;

    /**
     * 注册IP
     */
    @TableField("registry_ip")
    private String registryIp;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 0正常1删除
     */
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;


}
